package com.egg.basic.entity.quartz;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.egg.common.core.model.entity.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 定时任务表
 * </p>
 *
 * @author east
 * @since 2021-12-02
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName(value = "basic_quartz")
@ApiModel(value = "JobQuartz对象", description = "定时任务表")
public class Quartz extends BaseEntity {


    @ApiModelProperty(value = "定时器名称")
    @TableField(value = "job_name")
    private String jobName;

    @ApiModelProperty(value = "Bean名称")
    @TableField(value = "bean_name")
    private String beanName;

    @ApiModelProperty(value = "方法名称")
    @TableField(value = "method_name")
    private String methodName;

    @ApiModelProperty(value = "参数")
    @TableField(value = "params")
    private String params;

    @ApiModelProperty(value = "cron表达式")
    @TableField(value = "cron_expression")
    private String cronExpression;

    @ApiModelProperty(value = "暂停, true-暂停,false-非暂停")
    @TableField(value = "pause")
    private Boolean pause;

    @ApiModelProperty(value = "失败后禁用, 0-禁用,1-启用")
    @TableField(value = "pause_after_failure")
    private Boolean pauseAfterFailure;

    @ApiModelProperty(value = "负责人用户ID")
    @TableField(value = "charge_user_id")
    private Long chargeUserId;


}
